﻿@model Core.Models.File

@{
    ViewBag.Title = "File Delete";
    Layout = ((Core.Models.Theme)Session["Theme"]).Layout;
}

<h2>File Delete</h2>
<h3>Are you sure you want to delete this file?</h3>
@using (Html.BeginForm())
{
<table border="0" cellpadding="5" cellspacing="0" width="90%">
<tr>
    <td valign="top">
        <fieldset>

            @Html.HiddenFor(m => m.DomainId)
            @Html.HiddenFor(m => m.BusinessUnitId)
            @Html.HiddenFor(m => m.FileId)

            <div class="display-label">Description</div>
            <div class="display-field">@Model.Description</div>

            <div class="display-label">Filename</div>
            <div class="display-field">@Model.Filename</div>

            <div class="display-label">Extension</div>
            <div class="display-field">@Model.Extension</div>

            <div class="display-label">Size</div>
            <div class="display-field">@Core.Tools.FileSize(@Model.Size)</div>

        </fieldset>
    </td>
    <td valign="top">
        <fieldset>
            <div class="display-label">Created</div>
            <div class="display-field">@String.Format("{0:g}", Model.CreateDT)</div>

            <div class="display-label">Created By</div>
            <div class="display-field">@Model.CreatedByName</div>

            <div class="display-label">Last Accessed</div>
            <div class="display-field">@String.Format("{0:g}", Model.LastAccessedDT)</div>
        </fieldset>
    </td>
</tr>
<tr>
    <td colspan="2">
    &nbsp;
    </td>
</tr>
<tr>
    <td colspan="2">
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index", new { id = Model.BusinessUnitId})
    </td>
</tr>
</table>
}
